const Router = require('koa-router');

const {
    create
} = require('../controller/user.controller');

const { verifyUser, handlePassword } = require('../middleware/user.middleware')

const usersRouter = new Router({prefix: '/users'});

// 创建用户
usersRouter.post('/', verifyUser, handlePassword, create);

module.exports = usersRouter;